import Vue from 'vue'
import App from './App'
import { myRequest } from './util/request.js'

Vue.filter('formatDate',(date)=>{
	const uDate = new Date(date);
	const year = uDate.getFullYear();
	const month = uDate.getMonth().toString().padStart(2,0);
	const day = uDate.getDay().toString().padStart(2,0);
	return year + "-" + month + "-" + day;
})

Vue.config.productionTip = false
Vue.prototype.$myRequest = myRequest

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
